package com.teradata.callback;

import com.teradata.config.ITask;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Project: edb
 * @Description:
 * @Version 1.0
 * @Throws :
 * @Author: <li>2019/4/22 lyndon Create 1.0
 * @Copyright (c)2018-2018 中央结算公司，版权所有
 * @Modified By:
 */

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CallBackImpl implements CallBack {

    ITask task;

    @Override
    public void complete(boolean success, Throwable t) {
        System.out.println("callback statue " + success);
        task.busiVoidFunc();
    }
}
